{% extends "memebase/base.html" %}
{% block content %}
    {% if user %}
        Hello, {{user.nickname}}. <a href="{{logout_url}}">Logout</a>
    {% else %}
        Hello anonymous.  <a href="{{login_url}}">Login</a>
    {% endif %}
    <h1>Options:</h1>
    <ul>
    <li> <a href="{% url create_new_site %}">Create new Site</a></li>
    </ul>
    <h1>Existing sites:</h1>
    <ul>
    {% for site in sites %}
        <li><a href="{{site.get_site_prefix}}">{{site.sitename}}</a></li>
    {% endfor %}
    </ul>

{% endblock content %}
